﻿namespace Papyrus.Web.Models
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Papyrus.Web.Models.Entities;

    public class CustomerRepository : ICustomerRepository
    {
        public Customer Retrieve(Guid customerId)
        {
            if (customerId == default(Guid))
            {
                throw new ArgumentNullException("customerId");
            }

            using (var context = new Entities.Entities())
            {
                return context.Customers.SingleOrDefault(l => l.id == customerId);
            }
        }


        public void Save(Customer customer)
        {
            throw new NotImplementedException();
        }
    }
}